import { NgModule, ErrorHandler } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
import { MyApp } from './app.component';
import { GamesPage } from '../pages/games/games';
import { RankPage } from '../pages/rank/rank';
import { ArenaPage } from '../pages/arena/arena';
import { TabsControllerPage } from '../pages/tabs-controller/tabs-controller';
import { MyPage } from '../pages/my/my';
import { LoginPage } from '../pages/login/login';
import { GamePage } from '../pages/game/game';
import { RegisterPage } from '../pages/register/register';
import { MyCommentPage } from '../pages/my-comment/my-comment';
import { AllCommentsPage } from '../pages/all-comments/all-comments';
import { GameRuntimePage } from '../pages/game-runtime/game-runtime';
import { WebviewPage } from '../pages/webview/webview';
import { FeedbackPage } from '../pages/feedback/feedback';
import { AboutPage } from '../pages/about/about';
import { StatisticsPage } from '../pages/statistics/statistics';
import {ScreenOrientation} from "@ionic-native/screen-orientation";
import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';
import { IonicStorageModule } from '@ionic/storage';
import { HttpModule } from '@angular/http';

@NgModule({
  declarations: [
    MyApp,
    GamesPage,
    RankPage,
    ArenaPage,
    TabsControllerPage,
    LoginPage,
    MyPage,
    GamePage,
    RegisterPage,
    MyCommentPage,
    GameRuntimePage,
    WebviewPage,
    FeedbackPage,
    AboutPage,
    StatisticsPage,
    AllCommentsPage
  ],
  imports: [
    BrowserModule,
    HttpModule,
    IonicModule.forRoot(MyApp, {
      iconMode: 'ios',
      mode: 'ios',
    }),
    IonicStorageModule.forRoot()
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    GamesPage,
    RankPage,
    ArenaPage,
    TabsControllerPage,
    LoginPage,
    MyPage,
    RegisterPage,
    GamePage,
    MyCommentPage,
    GameRuntimePage,
    WebviewPage,
    FeedbackPage,
    AboutPage,
    StatisticsPage,
    AllCommentsPage
  ],
  providers: [
    StatusBar,
    SplashScreen,
    ScreenOrientation,
    {provide: ErrorHandler, useClass: IonicErrorHandler}
  ]
})
export class AppModule {}
